
<section class="ourteam" id="ourclients">
  <div class="container">
    <?php if ( isset(qvaCore::$qvaOptions['ourclients']['title']) || isset(qvaCore::$qvaOptions['ourclients']['short_description']) || isset(qvaCore::$qvaOptions['ourclients']['description']) ) : 

          if (  !empty(qvaCore::$qvaOptions['ourclients']['title']) || !empty(qvaCore::$qvaOptions['ourclients']['short_description']) || !empty(qvaCore::$qvaOptions['ourclients']['description']) ) :
    ?>
    <div class="heading">
      <?php  isset(qvaCore::$qvaOptions['ourclients']['title']) && !empty(qvaCore::$qvaOptions['ourclients']['title']) ?   printf(__(stripslashes('<h2>%s</h2>'), QVA_LANG), qvaCore::$qvaOptions['ourclients']['title'] )  : ""; ?>
      <?php  isset(qvaCore::$qvaOptions['ourclients']['short_description']) && !empty(qvaCore::$qvaOptions['ourclients']['short_description']) ?   printf(__(stripslashes('<h3>%s</h3>'), QVA_LANG), qvaCore::$qvaOptions['ourclients']['title'])  : ""; ?>
      <?php  isset(qvaCore::$qvaOptions['ourclients']['description']) && !empty(qvaCore::$qvaOptions['ourclients']['description']) ?  printf(__(stripslashes('<p>%s</p>'), QVA_LANG), qvaCore::$qvaOptions['ourclients']['description'])  : ""; ?>
    </div>
    
    <?php endif; endif; ?>

    <?php if ( isset(qvaCore::$qvaOptions['ourclients']['content']) && !empty(qvaCore::$qvaOptions['ourclients']['content']) ) : ?>
      <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 testimonialArea">
          <div class="testimonial flexslider" id="tetimonial">
            <ul class="slides">
              <?php 
                    $qva_testimonialId = qvaCore::$qvaOptions['ourclients']['content']; 

                    $qva_aTestimonial = get_post_meta($qva_testimonialId, "qva_ourclients", true);
                    


                    if ( isset($qva_aTestimonial['ourclient']['photo'])  && !empty($qva_aTestimonial['ourclient']['logo'])) :
                      foreach ($qva_aTestimonial['ourclient']['photo'] as $k => $photo) :
              ?>
                        <li class="test">
                          <div class="clientPic"><img src="<?php echo esc_url($photo); ?>" alt="<?php echo trim(strip_tags( get_post_meta($qva_testimonialId, '_wp_attachment_image_alt', true) )); ?>"></div>
                          <?php  isset($qva_aTestimonial['ourclient']['name'][$k]) ?   printf(__(stripslashes('<h3>%s</h3>'), QVA_LANG), $qva_aTestimonial['ourclient']['name'][$k])  : ""; ?>
                          <?php  isset($qva_aTestimonial['ourclient']['position'][$k]) ?  printf(__(stripslashes('<h4>%s</h4>'), QVA_LANG), $qva_aTestimonial['ourclient']['position'][$k])  : ""; ?>
                          <?php  isset($qva_aTestimonial['ourclient']['testimonial'][$k]) ?   printf(__(stripslashes('<p>%s</p>'), QVA_LANG), $qva_aTestimonial['ourclient']['testimonial'][$k])  : ""; ?>
                        </li>
              <?php   
                      endforeach;
                    endif; 
              ?>

            </ul>
          </div>
        </div>
      </div>
    <?php endif; ?>  

  </div>
</section>
 
<?php if ( isset(qvaCore::$qvaOptions['ourclients']['content']) && !empty(qvaCore::$qvaOptions['ourclients']['content']) ) : ?>
<section class="wework" id="wework">
  <div class="container">
    <div class="qva-index heading">
      <?php  ( isset($qva_aTestimonial['ourclient']['weareworkingwith']) ) && !empty($qva_aTestimonial['ourclient']['weareworkingwith']) ?  printf( __( stripslashes('<h2>%s</h2>'), QVA_LANG) , $qva_aTestimonial['ourclient']['weareworkingwith']  ) : ''; ?>
    </div>

    <?php if ( isset($qva_aTestimonial['ourclient']['logo']) && !empty($qva_aTestimonial['ourclient']['logo']) ) : ?>
    <div class="row">
      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 worlcompany">
        <div class="worklogo">
          <ul class="slides">
            <?php 
                foreach ($qva_aTestimonial['ourclient']['logo'] as $k => $v) :
            ?>
            <li><a href="<?php echo isset($qva_aTestimonial['ourclient']['link'][$k]) ? $qva_aTestimonial['ourclient']['link'][$k] : "#" ?>" target="_blank"><img src="<?php echo $v ?>" alt="Our clients"></a></li>
            <?php endforeach; ?>
          </ul>
        </div>
      </div>
    </div>
    <?php endif; ?>

  </div>
</section>
  
<?php endif;?>  

